writing equations in standard form